import { TabNavigator, TabBarTop } from 'react-navigation';
import STRING from '../const_string_zh_CN';

//pages
import TabCourse from '../pages/course/study_course_page';
import TabMoreCourse from '../pages/course/more_course_department';


const StudyCourseTabOptions = {
    //tabBarLabel: STRING.class_tab_study_name,
};

const MoreCourseTabOptions = {
    tabBarLabel: STRING.class_tab_more_name,
};


const MOOCTabCourseNavigator = TabNavigator({
    StudyCourse: { screen: TabCourse, navigationOptions: StudyCourseTabOptions },
    MoreCourse: { screen: TabMoreCourse, navigationOptions: MoreCourseTabOptions },
}, {
        tabBarComponent: TabBarTop,//or TabBarTop
        tabBarPosition: 'top', //or top
        swipeEnabled: false,
        animationEnabled: false,
        showIcon: false,
    }
);

export default MOOCTabCourseNavigator;
